import React from 'react'
import Item from '../Item/Item'
import './index.css'
export default function List({todos,deleteTodo,checkDone}) {
    return (
        <ul className="todo-main">
           {todos.map(todo=><Item key={todo.id} todo={todo} deleteTodo={deleteTodo} checkDone={checkDone}/>)}
        </ul>
    )
}
